import re

str ='172    0011.bb0f.bf17    DYNAMIC     Fa0/32'

result = re.match('(\d+)\s+([0-9a-f]{4}\.[0-9a-f]{4}\.[0-9a-f]{4})\s+(STATIC|DYNAMIC)\s+(\w.*\d)',str).groups()

print('{0:<10} : {1:<}'.format('VLAN ID',result[0]))
print('{0:<10} : {1:<}'.format('MAC',result[1]))
print('{0:<10} : {1:<}'.format('Type',result[2]))
print('{0:<10} : {1:<}'.format('Interface',result[3]))